import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import Find from './views/Find.vue'
import Hot from './views/Hot.vue'
import My from './views/My.vue'
import NotFound from './views/NotFound.vue'
import Find1 from './views/Find/Find-1.vue'
import Find2 from './views/Find/Find-2.vue'
import Find3 from './views/Find/Find-3.vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [{
        path: '/',
        redirect: '/finding'
    },
    {
        path: '/find',
        component: Find,
        name: 'findind',
        children: [{
                path: 'findOne',
                component: Find1
            },
            {
                path: 'findTwo',
                component: Find2
            },
            {
                path: 'findThree',
                component: Find3
            },
        ]
    },
    {
        path: '/hot',
        component: Hot
    },
    {
        path: '/my',
        component: My
    },
    {
        path: '*',
        component: NotFound
    }
]
const router = new VueRouter({ routes, mode: 'history' })



new Vue({
    render: h => h(App),
    router
}).$mount('#app')